<template>
  <QueryBuilderRule v-bind="rules">
  </QueryBuilderRule>
</template>

<script>
import QueryBuilderGroup from 'vue-query-builder/dist/group/QueryBuilderGroup.umd.js'
import QueryBuilderRule from './VueQueryDatePickRule'

export default {
  name: 'QueryBuilderGroup',
  props: {
    allRules: {
      rules: []
    }
  },
  data () {
    console.log(this.allRules)
    let rules = {}
    if (this.allRules) {
      rules = this.allRules
    }
    return {
      rules
    }
  },
  components: {
    QueryBuilderRule: QueryBuilderRule
  },

  extends: QueryBuilderGroup
}
</script>

<style scoped>

</style>
